package cn.codergege.spiderjd

import cn.codergege.spiderjd.spider.AllSortSpider
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class SpiderJdApplication: CommandLineRunner {
    @Autowired
    lateinit var allSortSpider: AllSortSpider

    override fun run(vararg args: String?) {
        allSortSpider.boot()
    }

}

fun main(args: Array<String>) {
    runApplication<SpiderJdApplication>(*args)
}
